Skip to content

Commit db6d570

Browse files
committed
Removing some unused includes
1 parent e167537 commit db6d570

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+32
-151
lines changed

Src/Common/SBTree.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
*
88
*/
99

10-
#include <stdlib.h>
11-
1210
class SBTree {
1311
public:
1412
SBTree(int iValue);

Src/Common/Trace.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
// removed by the compiler
2626

2727
#include <stdarg.h>
28-
#include <stdio.h>
2928

3029
void DasherTraceOutput(const char *pszFormat, ...);
3130
void DasherTraceOutputImpl(const char *pszFormat, va_list vargs);

Src/DasherCore/AbstractXMLParser.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
#include <fstream>
1313

14-
#include "FileUtils.h"
15-
1614
bool AbstractParser::ParseFile(const std::string& strPath, bool bUser)
1715
{
1816
std::ifstream in(strPath.c_str(), std::ios::binary);

Src/DasherCore/Alphabet/AlphIO.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
#include <algorithm>
2626
#include <sstream>
2727

28-
#include "../ColorIO.h"
29-
3028
using namespace Dasher;
3129

3230
CAlphIO::CAlphIO(CMessageDisplay *pMsgs) : AbstractXMLParser(pMsgs) {

Src/DasherCore/Alphabet/AlphIO.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include <map>
2929
#include <pugixml.hpp>
3030
#include <vector>
31-
#include <utility>
3231

3332
namespace Dasher {
3433
class CAlphIO;

Src/DasherCore/Alphabet/AlphInfo.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,12 @@
2121
#ifndef __ALPHINFO_H__
2222
#define __ALPHINFO_H__
2323

24-
#include <locale>
2524

2625
#include "../DasherTypes.h"
27-
#include "AlphabetMap.h"
2826
#include "GroupInfo.h"
2927

3028
#include <string>
31-
#include <unordered_map>
3229
#include <vector>
33-
#include <utility> // for std::pair
3430

3531
#include "Actions.h"
3632

Src/DasherCore/AlphabetManager.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#ifndef __alphabetmanager_h__
2222
#define __alphabetmanager_h__
2323

24+
#include <map>
25+
2426
#include "LanguageModelling/LanguageModel.h"
2527
#include "DasherNode.h"
2628
#include "NodeManager.h"

Src/DasherCore/AlternatingDirectMode.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include <I18n.h>
1010

1111
#include "DasherInterfaceBase.h"
12-
#include <valarray>
1312

1413

1514
using namespace Dasher;

Src/DasherCore/AlternatingDirectMode.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#ifndef __ALTERNATING_DIRECT_MODE_H__
66
#define __ALTERNATING_DIRECT_MODE_H__
77

8-
#include "Event.h"
98
#include "DasherButtons.h"
109

1110
namespace Dasher {

Src/DasherCore/ButtonMode.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include "DasherScreen.h"
1010
#include "DasherInterfaceBase.h"
11-
#include <valarray>
1211

1312

1413
using namespace Dasher;
@@ -113,7 +112,7 @@ void CButtonMode::SetupBoxes()
113112
double dMaxSize;
114113

115114
if(dRatio == 1.0) {
116-
dMaxSize = iDasherY / iForwardBoxes;
115+
dMaxSize = static_cast<double>(iDasherY) / static_cast<double>(iForwardBoxes);
117116
}
118117
else {
119118
if(bEven)

0 commit comments

Comments
 (0)