Changeset 10031


Ignore:
Timestamp:
Jan 28, 2010, 1:33:40 PM (13 years ago)
Author:
charles
Message:

(trunk) remove unnecessary #includes

Location:
trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/daemon.c

    r9919 r10031  
    1111 */
    1212
    13 #include <assert.h>
    1413#include <errno.h>
    1514#include <stdio.h> /* printf */
  • trunk/gtk/conf.c

    r9793 r10031  
    2323 *****************************************************************************/
    2424
    25 #include <assert.h>
    2625#include <errno.h>
    2726#include <stdio.h>
     
    109108getLockFilename( void )
    110109{
    111     assert( gl_confdir != NULL );
     110    g_assert( gl_confdir != NULL );
    112111    return g_build_filename( gl_confdir, "lock", NULL );
    113112}
     
    212211getPrefsFilename( void )
    213212{
    214     assert( gl_confdir != NULL );
     213    g_assert( gl_confdir != NULL );
    215214    return g_build_filename( gl_confdir, "settings.json", NULL );
    216215}
     
    364363getCompat090PrefsFilename( void )
    365364{
    366     assert( gl_confdir != NULL );
     365    g_assert( gl_confdir != NULL );
    367366
    368367    return g_build_filename( g_get_home_dir( ), ".transmission", "gtk", "prefs.ini", NULL );
  • trunk/gtk/torrent-cell-renderer.c

    r9994 r10031  
    1111 */
    1212
    13 #include "assert.h"
    1413#include <string.h> /* strcmp() */
    1514#include <gtk/gtk.h>
  • trunk/gtk/tr-core.h

    r9545 r10031  
    2525#ifndef TR_CORE_H
    2626#define TR_CORE_H
    27 
    28 #include <string.h>
    2927
    3028#include <glib-object.h>
  • trunk/gtk/tr-prefs.c

    r9916 r10031  
    1212
    1313#include <ctype.h> /* isspace */
    14 #include <errno.h>
    15 #include <stdarg.h>
    1614#include <limits.h> /* USHRT_MAX */
    1715#include <stdlib.h> /* free() */
  • trunk/gtk/util.c

    r9970 r10031  
    1313#include <ctype.h> /* isxdigit() */
    1414#include <errno.h>
    15 #include <stdarg.h>
    1615#include <stdlib.h> /* free() */
    1716#include <string.h> /* strcmp() */
  • trunk/libtransmission/completion.h

    r9931 r10031  
    2222#include "transmission.h"
    2323#include "bitfield.h"
    24 #include "utils.h" /* tr_bitfield */
    2524
    2625typedef struct tr_completion
  • trunk/libtransmission/fdlimit.c

    r9931 r10031  
    6262#include "transmission.h"
    6363#include "fdlimit.h"
    64 #include "list.h"
    6564#include "net.h"
    6665#include "platform.h" /* MAX_PATH_LENGTH, TR_PATH_DELIMITER */
  • trunk/libtransmission/peer-mgr.h

    r9890 r10031  
    2929#include "peer-common.h" /* struct peer_request */
    3030#include "publish.h" /* tr_publisher_tag */
    31 #include "utils.h"
    3231
    3332/**
  • trunk/libtransmission/utils.h

    r9965 r10031  
    1515
    1616#include <inttypes.h>
    17 #include <stdarg.h>
    1817#include <stddef.h> /* size_t */
    1918#include <stdio.h> /* FILE* */
  • trunk/libtransmission/web.c

    r10024 r10031  
    1818
    1919#include "transmission.h"
    20 #include "list.h"
    2120#include "net.h"
    2221#include "ptrarray.h"
     
    7675    curl_multi_cleanup( g->multi );
    7776    evtimer_del( &g->timer_event );
    78     tr_ptrArrayDestruct( &g->dns_cache, (TrListForeachFunc)dns_cache_item_free );
     77    tr_ptrArrayDestruct( &g->dns_cache, (PtrArrayForeachFunc)dns_cache_item_free );
    7978    memset( g, TR_MEMORY_TRASH, sizeof( struct tr_web ) );
    8079    tr_free( g );
     
    136135    tr_free( item->host );
    137136    tr_free( item->resolved_host );
     137    memset( item, TR_MEMORY_TRASH, sizeof( struct dns_cache_item ) );
    138138    tr_free( item );
    139139}
  • trunk/libtransmission/webseed.c

    r9868 r10031  
    1717#include "transmission.h"
    1818#include "inout.h"
    19 #include "list.h"
    2019#include "ratecontrol.h"
    2120#include "torrent.h"
Note: See TracChangeset for help on using the changeset viewer.