Skip to content

Commit 6593f36

Browse files
committed
removed unused stream-related functions
1 parent 3545fc5 commit 6593f36

2 files changed

Lines changed: 0 additions & 15 deletions

File tree

lib/tokenlist.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -356,20 +356,6 @@ bool TokenList::createTokens(const uint8_t* data, size_t size, const std::string
356356

357357
//---------------------------------------------------------------------------
358358

359-
bool TokenList::createTokens(std::istream &code, Standards::Language lang)
360-
{
361-
ASSERT_LANG(lang != Standards::Language::None);
362-
if (mLang == Standards::Language::None) {
363-
mLang = lang;
364-
} else {
365-
ASSERT_LANG(lang == mLang);
366-
}
367-
368-
return createTokensInternal(code, "");
369-
}
370-
371-
//---------------------------------------------------------------------------
372-
373359
bool TokenList::createTokens(const uint8_t* data, size_t size, Standards::Language lang)
374360
{
375361
ASSERT_LANG(lang != Standards::Language::None);

lib/tokenlist.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ class CPPCHECKLIB TokenList {
113113
bool createTokens(const char (&data)[size], const std::string& file0) {
114114
return createTokens(reinterpret_cast<const uint8_t*>(data), size-1, file0);
115115
}
116-
bool createTokens(std::istream &code, Standards::Language lang);
117116
bool createTokens(const uint8_t* data, size_t size, Standards::Language lang);
118117
bool createTokens(const char* data, size_t size, Standards::Language lang) {
119118
return createTokens(reinterpret_cast<const uint8_t*>(data), size, lang);

0 commit comments

Comments
 (0)