Bug 592599 - Remove unused browser/components/feeds/src/GenericFactory.js, r+a=gavin
authorPhil Ringnalda <philringnalda@gmail.com>
Tue, 31 Aug 2010 22:26:30 -0700
changeset 52091 cb6459c3d8bb90529f6e1ed8f4d97654f838ac4a
parent 52090 604837271fd0b1c2813910b72cb3e986dea26204
child 52092 7fb586ff216b692f73519833c1667f8bc1858ea5
push idunknown
push userunknown
push dateunknown
bugs592599
milestone2.0b6pre
Bug 592599 - Remove unused browser/components/feeds/src/GenericFactory.js, r+a=gavin
browser/components/feeds/src/GenericFactory.js
deleted file mode 100644
--- a/browser/components/feeds/src/GenericFactory.js
+++ /dev/null
@@ -1,63 +0,0 @@
-# -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Generic Component Factory.
-#
-# The Initial Developer of the Original Code is Google Inc.
-# Portions created by the Initial Developer are Copyright (C) 2006
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#   Ben Goodger <beng@google.com>
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK ***** */
-
-/**
- * An object implementing nsIFactory that can construct other objects upon
- * createInstance, passing a set of parameters to that object's constructor.
- */
-function GenericComponentFactory(ctor, params) {
-  this._ctor = ctor;
-  this._params = params;
-}
-GenericComponentFactory.prototype = {
-  _ctor: null,
-  _params: null,
-  
-  createInstance: function GCF_createInstance(outer, iid) {
-    if (outer != null)
-      throw Cr.NS_ERROR_NO_AGGREGATION;
-    return (new this._ctor(this._params)).QueryInterface(iid);
-  },
-  
-  QueryInterface: function GCF_QueryInterface(iid) {
-    if (iid.equals(Ci.nsIFactory) ||
-        iid.equals(Ci.nsISupports)) 
-      return this;
-    throw Cr.NS_ERROR_NO_INTERFACE;
-  }
-};
-