Changeset 14581


Ignore:
Timestamp:
Oct 18, 2015, 6:39:14 PM (6 years ago)
Author:
mikedld
Message:

Remove unused session tag

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/cli.c

    r14503 r14581  
    281281    }
    282282
    283   h = tr_sessionInit ("cli", configDir, false, &settings);
     283  h = tr_sessionInit (configDir, false, &settings);
    284284
    285285  ctor = tr_ctorNew (h);
  • trunk/daemon/daemon.c

    r14574 r14581  
    512512    tr_formatter_size_init (DISK_K, DISK_K_STR, DISK_M_STR, DISK_G_STR, DISK_T_STR);
    513513    tr_formatter_speed_init (SPEED_K, SPEED_K_STR, SPEED_M_STR, SPEED_G_STR, SPEED_T_STR);
    514     session = tr_sessionInit ("daemon", configDir, true, settings);
     514    session = tr_sessionInit (configDir, true, settings);
    515515    tr_sessionSetRPCCallback (session, on_rpc_callback, NULL);
    516516    tr_logAddNamedInfo (NULL, "Using settings from \"%s\"", configDir);
  • trunk/gtk/main.c

    r14552 r14581  
    524524
    525525  /* initialize the libtransmission session */
    526   session = tr_sessionInit ("gtk", cbdata->config_dir, TRUE, gtr_pref_get_all ());
     526  session = tr_sessionInit (cbdata->config_dir, TRUE, gtr_pref_get_all ());
    527527
    528528  gtr_pref_flag_set (TR_KEY_alt_speed_enabled, tr_sessionUsesAltSpeed (session));
  • trunk/libtransmission/libtransmission-test.c

    r14428 r14581  
    277277    tr_variantDictAddInt (settings, q, verbose ? TR_LOG_DEBUG : TR_LOG_ERROR);
    278278
    279   session = tr_sessionInit ("libtransmission-test", sandbox, !verbose, settings);
     279  session = tr_sessionInit (sandbox, !verbose, settings);
    280280
    281281  tr_free (sandbox);
  • trunk/libtransmission/session.c

    r14574 r14581  
    582582
    583583tr_session *
    584 tr_sessionInit (const char  * tag,
    585                 const char  * configDir,
    586                 bool          messageQueuingEnabled,
    587                 tr_variant     * clientSettings)
     584tr_sessionInit (const char * configDir,
     585                bool         messageQueuingEnabled,
     586                tr_variant * clientSettings)
    588587{
    589588  int64_t i;
     
    601600  session->lock = tr_lockNew ();
    602601  session->cache = tr_cacheNew (1024*1024*2);
    603   session->tag = tr_strdup (tag);
    604602  session->magicNumber = SESSION_MAGIC_NUMBER;
    605603  tr_bandwidthConstruct (&session->bandwidth, session, NULL);
     
    19301928  tr_device_info_free (session->downloadDir);
    19311929  tr_free (session->torrentDoneScript);
    1932   tr_free (session->tag);
    19331930  tr_free (session->configDir);
    19341931  tr_free (session->resumeDir);
  • trunk/libtransmission/session.h

    r14479 r14581  
    180180    char *                       torrentDoneScript;
    181181
    182     char *                       tag;
    183182    char *                       configDir;
    184183    char *                       resumeDir;
  • trunk/libtransmission/transmission.h

    r14532 r14581  
    253253 *     tr_sessionGetDefaultSettings (&settings);
    254254 *     configDir = tr_getDefaultConfigDir ("Transmission");
    255  *     session = tr_sessionInit ("mac", configDir, true, &settings);
     255 *     session = tr_sessionInit (configDir, true, &settings);
    256256 *
    257257 *     tr_variantFree (&settings);
    258258 * @endcode
    259259 *
    260  * @param tag "gtk", "macosx", "daemon", etc... this is only for pre-1.30 resume files
    261260 * @param configDir where Transmission will look for resume files, blocklists, etc.
    262261 * @param messageQueueingEnabled if false, messages will be dumped to stderr
     
    266265 * @see tr_getDefaultConfigDir ()
    267266 */
    268 tr_session * tr_sessionInit (const char        * tag,
    269                              const char        * configDir,
     267tr_session * tr_sessionInit (const char        * configDir,
    270268                             bool                messageQueueingEnabled,
    271269                             struct tr_variant * settings);
  • trunk/macosx/Controller.m

    r14501 r14581  
    362362       
    363363        const char * configDir = tr_getDefaultConfigDir("Transmission");
    364         fLib = tr_sessionInit("macosx", configDir, YES, &settings);
     364        fLib = tr_sessionInit(configDir, YES, &settings);
    365365        tr_variantFree(&settings);
    366366       
  • trunk/qt/Session.cc

    r14539 r14581  
    352352      tr_variantInitDict (&settings, 0);
    353353      tr_sessionLoadSettings (&settings, myConfigDir.toUtf8 ().constData (), "qt");
    354       mySession = tr_sessionInit ("qt", myConfigDir.toUtf8 ().constData (), true, &settings);
     354      mySession = tr_sessionInit (myConfigDir.toUtf8 ().constData (), true, &settings);
    355355      tr_variantFree (&settings);
    356356
Note: See TracChangeset for help on using the changeset viewer.