Commit 7eae5150 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Removed deprecated method Snapshot::globalNamespaceBinding().

parent 3922be1b
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
**************************************************************************/ **************************************************************************/
#include "CppDocument.h" #include "CppDocument.h"
#include "CppBindings.h"
#include "FastPreprocessor.h" #include "FastPreprocessor.h"
#include <Control.h> #include <Control.h>
...@@ -545,11 +544,6 @@ Document::Ptr Snapshot::documentFromSource(const QByteArray &preprocessedCode, ...@@ -545,11 +544,6 @@ Document::Ptr Snapshot::documentFromSource(const QByteArray &preprocessedCode,
return newDoc; return newDoc;
} }
QSharedPointer<NamespaceBinding> Snapshot::globalNamespaceBinding(Document::Ptr doc) const
{
return CPlusPlus::bind(doc, *this);
}
Document::Ptr Snapshot::document(const QString &fileName) const Document::Ptr Snapshot::document(const QString &fileName) const
{ {
return _documents.value(fileName); return _documents.value(fileName);
......
...@@ -42,7 +42,6 @@ namespace CPlusPlus { ...@@ -42,7 +42,6 @@ namespace CPlusPlus {
class Macro; class Macro;
class MacroArgumentReference; class MacroArgumentReference;
class NamespaceBinding;
class CPLUSPLUS_EXPORT Document class CPLUSPLUS_EXPORT Document
{ {
...@@ -365,8 +364,6 @@ public: ...@@ -365,8 +364,6 @@ public:
Document::Ptr documentFromSource(const QByteArray &preprocessedCode, Document::Ptr documentFromSource(const QByteArray &preprocessedCode,
const QString &fileName) const; const QString &fileName) const;
QSharedPointer<NamespaceBinding> globalNamespaceBinding(Document::Ptr doc) const;
private: private:
void simplified_helper(Document::Ptr doc, Snapshot *snapshot) const; void simplified_helper(Document::Ptr doc, Snapshot *snapshot) const;
......
...@@ -36,6 +36,8 @@ ...@@ -36,6 +36,8 @@
namespace CPlusPlus { namespace CPlusPlus {
class NamespaceBinding;
class CPLUSPLUS_EXPORT DeprecatedLookupContext class CPLUSPLUS_EXPORT DeprecatedLookupContext
{ {
public: public:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment