From 647a324089bf5b6797f34be0daabf1f72d931afd Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Sat, 19 Apr 2003 12:51:44 +0000 Subject: [PATCH] followup to 202517 patch by dwitte@stanford.edu r=biesi remove some unused code from TestCookie.cpp and remove now-unneeded dependency on intl; affects TestCookie only --- extensions/cookie/tests/Makefile.in | 46 -------------------------- extensions/cookie/tests/TestCookie.cpp | 11 ------ 2 files changed, 57 deletions(-) diff --git a/extensions/cookie/tests/Makefile.in b/extensions/cookie/tests/Makefile.in index f7b4124d1ec..e69de29bb2d 100644 --- a/extensions/cookie/tests/Makefile.in +++ b/extensions/cookie/tests/Makefile.in @@ -1,46 +0,0 @@ -# -# The contents of this file are subject to the Netscape 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/NPL/ -# -# 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 mozilla.org code. -# -# The Initial Developer of the Original Code is Netscape -# Communications Corporation. Portions created by Netscape are -# Copyright (C) 1998 Netscape Communications Corporation. All -# Rights Reserved. -# -# Contributor(s): -# - -DEPTH = ../../.. -topsrcdir = @top_srcdir@ -srcdir = @srcdir@ -VPATH = @srcdir@ - -include $(DEPTH)/config/autoconf.mk - -REQUIRES = xpcom \ - string \ - necko \ - intl \ - pref \ - $(NULL) - -PROGRAM = TestCookie$(BIN_SUFFIX) -CPPSRCS = TestCookie.cpp - -LIBS = $(XPCOM_LIBS) $(NSPR_LIBS) - -ifeq ($(OS_ARCH),WINNT) -MAPFILE = TestCookie.map -endif - -include $(topsrcdir)/config/rules.mk - diff --git a/extensions/cookie/tests/TestCookie.cpp b/extensions/cookie/tests/TestCookie.cpp index 8245f5440d6..30856c504bf 100644 --- a/extensions/cookie/tests/TestCookie.cpp +++ b/extensions/cookie/tests/TestCookie.cpp @@ -42,8 +42,6 @@ #include "plstr.h" #include "nsNetUtil.h" #include "nsXPIDLString.h" -#include "nsIEventQueueService.h" -#include "nsIStringBundle.h" #include "nsIPrefBranch.h" #include "nsIPrefService.h" @@ -174,15 +172,6 @@ main(PRInt32 argc, char *argv[]) nsresult rv0 = NS_InitXPCOM2(nsnull, nsnull, nsnull); if (NS_FAILED(rv0)) return -1; - nsCOMPtr bundleService = - do_GetService(NS_STRINGBUNDLE_CONTRACTID, &rv0); - if (NS_SUCCEEDED(rv0)) - { - nsCOMPtr stringBundle; - const char propertyURL[] = "chrome://necko/locale/necko.properties"; - rv0 = bundleService->CreateBundle(propertyURL, getter_AddRefs(stringBundle)); - } - nsCOMPtr cookieService = do_GetService(kCookieServiceCID, &rv0); if (NS_FAILED(rv0)) return -1;