Commit 01eb18e2 authored by mkwst@chromium.org's avatar mkwst@chromium.org

Remove unused 'Credential::create' methods.

These methods are unused, and confusing. Let's remove them.

BUG=494880
R=jochen@chromium.org

Review URL: https://codereview.chromium.org/1321683009

git-svn-id: svn://svn.chromium.org/blink/trunk@201900 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 660eb497
......@@ -10,19 +10,6 @@
namespace blink {
Credential* Credential::create(const String& id, const String& name, const KURL& icon)
{
return new Credential(id, name, icon);
}
Credential* Credential::create(const String& id, const String& name, const String& icon, ExceptionState& exceptionState)
{
KURL iconURL = parseStringAsURL(icon, exceptionState);
if (exceptionState.hadException())
return nullptr;
return new Credential(id, name, iconURL);
}
Credential::Credential(PlatformCredential* credential)
: m_platformCredential(credential)
{
......
......@@ -17,9 +17,6 @@ class ExceptionState;
class Credential : public GarbageCollected<Credential>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
static Credential* create(const String& id, const String& name, const KURL& icon);
static Credential* create(const String& id, const String& name, const String& icon, ExceptionState&);
// Credential.idl
const String& id() const { return m_platformCredential->id(); }
const String& name() const { return m_platformCredential->name(); }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment