From: Charles Kerr Date: Mon, 7 Dec 2009 03:57:55 +0000 (+0000) Subject: (trunk libT) remove unnecessary #includes X-Git-Tag: 1.80b5~225 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=907c67ba78780b6370e4eb2648441131937fcd7f;p=transmission (trunk libT) remove unnecessary #includes --- diff --git a/libtransmission/metainfo.c b/libtransmission/metainfo.c index b20747c19..17b06e7c9 100644 --- a/libtransmission/metainfo.c +++ b/libtransmission/metainfo.c @@ -1,26 +1,14 @@ -/****************************************************************************** - * $Id$ - * - * Copyright (c) 2005-2008 Transmission authors and contributors +/* + * This file Copyright (C) 2009 Mnemosyne LLC * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: + * 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. * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. - *****************************************************************************/ + * $Id$ + */ #include #include diff --git a/libtransmission/metainfo.h b/libtransmission/metainfo.h index 07f92ca97..87faae1b1 100644 --- a/libtransmission/metainfo.h +++ b/libtransmission/metainfo.h @@ -1,26 +1,14 @@ -/****************************************************************************** - * $Id$ - * - * Copyright (c) 2005-2008 Transmission authors and contributors +/* + * This file Copyright (C) 2009 Mnemosyne LLC * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: + * 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. * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. - *****************************************************************************/ + * $Id$ + */ #ifndef __TRANSMISSION__ #error only libtransmission should #include this header. diff --git a/libtransmission/peer-msgs.c b/libtransmission/peer-msgs.c index e6fd889fb..ec8ba8b05 100644 --- a/libtransmission/peer-msgs.c +++ b/libtransmission/peer-msgs.c @@ -31,7 +31,6 @@ #include "peer-mgr.h" #include "peer-msgs.h" #include "platform.h" /* MAX_STACK_ARRAY_SIZE */ -#include "ratecontrol.h" #include "session.h" #include "stats.h" #include "torrent.h" diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 7a5ac5937..640574a53 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -37,7 +37,6 @@ #include "peer-mgr.h" #include "platform.h" /* TR_PATH_DELIMITER_STR */ #include "ptrarray.h" -#include "ratecontrol.h" #include "session.h" #include "torrent.h" #include "torrent-magnet.h" diff --git a/libtransmission/torrent.h b/libtransmission/torrent.h index eb585b863..ae984c058 100644 --- a/libtransmission/torrent.h +++ b/libtransmission/torrent.h @@ -18,12 +18,10 @@ #define TR_TORRENT_H 1 #include "completion.h" /* tr_completion */ -#include "ratecontrol.h" /* tr_ratecontrol */ #include "session.h" /* tr_globalLock(), tr_globalUnlock() */ #include "utils.h" /* TR_GNUC_PRINTF */ struct tr_bandwidth; -struct tr_ratecontrol; struct tr_torrent_tiers; struct tr_magnet_info;