From 6eb8c5132efa27b58adc672348df4ad5de64e6a3 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 11 May 2008 23:13:50 +0000 Subject: [PATCH] remove benc2php, since we're going to be using json now. --- libtransmission/Makefile.am | 4 ---- libtransmission/benc2php.c | 38 ------------------------------------- 2 files changed, 42 deletions(-) delete mode 100644 libtransmission/benc2php.c diff --git a/libtransmission/Makefile.am b/libtransmission/Makefile.am index 14034085f..c66f96284 100644 --- a/libtransmission/Makefile.am +++ b/libtransmission/Makefile.am @@ -84,8 +84,6 @@ noinst_HEADERS = \ verify.h \ web.h -bin_PROGRAMS = benc2php - TESTS = \ blocklist-test \ bencode-test \ @@ -107,8 +105,6 @@ APPS_LDADD = \ $(PTHREAD_LIBS) \ -lm -benc2php_SOURCES = benc2php.c -benc2php_LDADD = $(APPS_LDADD) bencode_test_SOURCES = bencode-test.c bencode_test_LDADD = $(APPS_LDADD) blocklist_test_SOURCES = blocklist-test.c diff --git a/libtransmission/benc2php.c b/libtransmission/benc2php.c deleted file mode 100644 index 15fd47886..000000000 --- a/libtransmission/benc2php.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This file Copyright (C) 2008 Charles Kerr - * - * This file is licensed by the GPL version 2. Works owned by the - * Transmission project are granted a special exemption to clause 2(b) - * so that the bulk of its code can remain under the MIT license. - * This exemption does not extend to derived works not owned by - * the Transmission project. - * - * $Id:$ - */ - -#include /* fprintf() */ -#include /* strlen() */ -#include /* tr_free() */ -#include /* tr_bencLoad() */ - -int -main( int argc, char *argv[] ) -{ - if( argc != 2 ) - { - fprintf( stderr, "Convert bencoded text to serialized php.\n" ); - fprintf( stderr, "Usage: benc2php bencoded-text\n" ); - return -1; - } - else - { - tr_benc top; - const char * benc_str = argv[1]; - char * serialized; - tr_bencLoad( benc_str, strlen( benc_str ), &top, NULL ); - serialized = tr_bencSaveAsSerializedPHP( &top, NULL ); - puts( serialized ); - tr_free( serialized ); - return 0; - } -}