Commit c99f3f0d authored by Ole Christian Eidheim's avatar Ole Christian Eidheim
Browse files

Removed unneccessary check

parent f63883d9
#include "CodeCompleteResults.h"
#include "CompletionString.h"
#include <exception>
#include "Utility.h"
clangmm::CodeCompleteResults::CodeCompleteResults(CXTranslationUnit &cx_tu,
......@@ -34,9 +33,6 @@ unsigned clangmm::CodeCompleteResults::size() const {
}
clangmm::CompletionString clangmm::CodeCompleteResults::get(unsigned i) const {
if (i >= size()) {
throw std::invalid_argument("clangmm::CodeCompleteResults::get(unsigned i): i>=size()");
}
return CompletionString(cx_results->Results[i].CompletionString);
}
......
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