Bug 457046 - Decide what to do with <TestPipes.cpp> |#if 0|'ed code; Av1; r=benjamin
authorSerge Gautherie <sgautherie.bz@free.fr>
Wed, 08 Oct 2008 02:24:31 +0200
changeset 20122 03bcf290b1fb742dbff57803c77fe2a1d4397d1d
parent 20121 de76b64c50e503dc4f7384484fee8fc8320117a8
child 20123 f87c1b3d0a192efcb0a5c41390def153303730e6
push id2648
push usersgautherie.bz@free.fr
push dateWed, 08 Oct 2008 00:28:41 +0000
treeherdermozilla-central@f87c1b3d0a19 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbenjamin
bugs457046
milestone1.9.1b2pre
Bug 457046 - Decide what to do with <TestPipes.cpp> |#if 0|'ed code; Av1; r=benjamin
xpcom/tests/TestPipes.cpp
--- a/xpcom/tests/TestPipes.cpp
+++ b/xpcom/tests/TestPipes.cpp
@@ -529,31 +529,16 @@ main(int argc, char* argv[])
     if (argc > 1 && nsCRT::strcmp(argv[1], "-trace") == 0)
         gTrace = PR_TRUE;
 
 #ifdef DEBUG
     printf("Testing segmented buffer...\n");
     TestSegmentedBuffer();
 #endif
 
-#if 0   // obsolete old implementation
-    nsCOMPtr<nsIInputStream> in;
-    nsCOMPtr<nsIOutputStream> out;
-    rv = TP_NewPipe(getter_AddRefs(in), getter_AddRefs(out), 4096 * 4);
-    if (NS_FAILED(rv)) {
-        printf("TP_NewPipe failed\n");
-        return -1;
-    }
-
-    rv = TestPipe(in, out);
-    if (NS_FAILED(rv)) {
-        printf("TestPipe failed\n");
-        return -1;
-    }
-#endif
 #if 0
     TestSearch("foo", 8);
     TestSearch("bar", 6);
     TestSearch("baz", 2);
 #endif
 
     rv = TestChainedPipes();
     NS_ASSERTION(NS_SUCCEEDED(rv), "TestChainedPipes failed");