mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
includes: remove obsolete fancy headers
add a script to easy the task in the future
This commit is contained in:
parent
9f362672a6
commit
48995bcdbf
29 changed files with 26 additions and 58 deletions
|
@ -49,7 +49,6 @@ install( FILES
|
|||
KCMultiDialog
|
||||
KIdleTime
|
||||
KCalendarSystem
|
||||
KCalendarSystemFactory
|
||||
KCharMacroExpander
|
||||
KCharSelect
|
||||
KCharsets
|
||||
|
@ -146,7 +145,6 @@ install( FILES
|
|||
KFilePlacesModel
|
||||
KFileShare
|
||||
KFileSharePropsPlugin
|
||||
KFileTreeBranch
|
||||
KFileTreeView
|
||||
KFilterBase
|
||||
KFilterDev
|
||||
|
@ -318,7 +316,6 @@ install( FILES
|
|||
KShortcutsDialog
|
||||
KShortcutsEditor
|
||||
KShortcutWidget
|
||||
KSocks
|
||||
KSortableItem
|
||||
KSortableList
|
||||
KSpeech
|
||||
|
@ -528,30 +525,6 @@ install( FILES
|
|||
KMediaPlayer/View
|
||||
DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/KMediaPlayer COMPONENT Devel)
|
||||
|
||||
install( FILES
|
||||
KNetwork/KActiveSocketBase
|
||||
KNetwork/KBufferedSocket
|
||||
KNetwork/KClientSocketBase
|
||||
KNetwork/KDatagramPacket
|
||||
KNetwork/KDatagramSocket
|
||||
KNetwork/KHttpProxySocketDevice
|
||||
KNetwork/KInetSocketAddress
|
||||
KNetwork/KIpAddress
|
||||
KNetwork/KPassiveSocketBase
|
||||
KNetwork/KResolver
|
||||
KNetwork/KResolverEntry
|
||||
KNetwork/KResolverResults
|
||||
KNetwork/KReverseResolver
|
||||
KNetwork/KServerSocket
|
||||
KNetwork/KSocketAddress
|
||||
KNetwork/KSocketBase
|
||||
KNetwork/KSocketDevice
|
||||
KNetwork/KSocketDeviceFactory
|
||||
KNetwork/KSocksSocketDevice
|
||||
KNetwork/KStreamSocket
|
||||
KNetwork/KUnixSocketAddress
|
||||
DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/KNetwork COMPONENT Devel)
|
||||
|
||||
install( FILES
|
||||
KParts/BrowserExtension
|
||||
KParts/BrowserHostExtension
|
||||
|
@ -733,13 +706,11 @@ install(FILES
|
|||
Plasma/AppletScript
|
||||
Plasma/BusyWidget
|
||||
Plasma/CheckBox
|
||||
Plasma/ClientPinRequest
|
||||
Plasma/ComboBox
|
||||
Plasma/ConfigLoader
|
||||
Plasma/Containment
|
||||
Plasma/ContainmentActions
|
||||
Plasma/Corona
|
||||
Plasma/Credentials
|
||||
Plasma/DataContainer
|
||||
Plasma/DataEngine
|
||||
Plasma/DataEngineManager
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
#include "../kcalendarsystemfactory.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../kconfigini.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../kfiletreebranch.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3socketbase.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3bufferedsocket.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3clientsocketbase.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3datagramsocket.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3datagramsocket.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3httpproxysocketdevice.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3socketaddress.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3socketaddress.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3socketbase.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3resolver.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3resolver.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3resolver.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3reverseresolver.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3serversocket.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3socketaddress.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3socketbase.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3socketdevice.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3socketdevice.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3sockssocketdevice.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3streamsocket.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../../k3socketaddress.h"
|
|
@ -1 +0,0 @@
|
|||
#include "../k3socks.h"
|
|
@ -1,2 +0,0 @@
|
|||
#include "../../plasma/clientpinrequest.h"
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#include "../../plasma/credentials.h"
|
||||
|
26
includes/checkobsolete.py
Executable file
26
includes/checkobsolete.py
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/python2
|
||||
|
||||
# a script to check for Qt4 meta-headers inclusion in source files
|
||||
|
||||
import os, re, sys
|
||||
|
||||
lexceptions = ['../../dnssd/settings.h']
|
||||
|
||||
lall = []
|
||||
for root, dirs, files in os.walk('%s/..' % os.getcwd()):
|
||||
for sfile in files:
|
||||
lall.append(os.path.basename(sfile))
|
||||
|
||||
lheaders = []
|
||||
for root, dirs, files in os.walk(os.getcwd()):
|
||||
for sfile in files:
|
||||
sfull = '%s/%s' % (root, sfile)
|
||||
with open(sfull, 'rb') as f:
|
||||
content = f.read()
|
||||
for match in re.findall('#(?:[\\s]+)?include [<|"](.*)[>|"]', content):
|
||||
if match in lexceptions:
|
||||
continue
|
||||
if not os.path.basename(match) in lall:
|
||||
print(sfull, match)
|
||||
if '--remove' in sys.argv:
|
||||
os.unlink(sfull)
|
Loading…
Add table
Reference in a new issue