mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
remove redundant lyxerr.debugging checks; macro LYXERR already checks whether the output is actually needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17681 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4823150780
commit
ee47f918c2
@ -243,8 +243,7 @@ void InsetCommandParams::scanCommand(string const & cmd)
|
|||||||
if (!tsecoptions.empty()) setSecOptions(tsecoptions);
|
if (!tsecoptions.empty()) setSecOptions(tsecoptions);
|
||||||
if (!tcontents.empty()) setContents(tcontents);
|
if (!tcontents.empty()) setContents(tcontents);
|
||||||
|
|
||||||
if (lyxerr.debugging(Debug::PARSER))
|
LYXERR(Debug::PARSER) << "Command <" << cmd
|
||||||
lyxerr << "Command <" << cmd
|
|
||||||
<< "> == <" << to_utf8(getCommand())
|
<< "> == <" << to_utf8(getCommand())
|
||||||
<< "> == <" << getCmdName()
|
<< "> == <" << getCmdName()
|
||||||
<< '|' << getContents()
|
<< '|' << getContents()
|
||||||
|
@ -57,11 +57,9 @@ string const kb_keymap::printKeySym(LyXKeySym const & key,
|
|||||||
|
|
||||||
string::size_type kb_keymap::bind(string const & seq, FuncRequest const & func)
|
string::size_type kb_keymap::bind(string const & seq, FuncRequest const & func)
|
||||||
{
|
{
|
||||||
if (lyxerr.debugging(Debug::KBMAP)) {
|
LYXERR(Debug::KBMAP) << "BIND: Sequence `"
|
||||||
lyxerr << "BIND: Sequence `"
|
|
||||||
<< seq << "' Action `"
|
<< seq << "' Action `"
|
||||||
<< func.action << '\'' << endl;
|
<< func.action << '\'' << endl;
|
||||||
}
|
|
||||||
|
|
||||||
kb_sequence k(0, 0);
|
kb_sequence k(0, 0);
|
||||||
|
|
||||||
|
@ -923,9 +923,7 @@ bool LyX::init()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lyxerr.debugging(Debug::INIT)) {
|
LYXERR(Debug::INIT) << "LyX tmp dir: `" << package().temp_dir() << '\'' << endl;
|
||||||
lyxerr << "LyX tmp dir: `" << package().temp_dir() << '\'' << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
LYXERR(Debug::INIT) << "Reading session information '.lyx/session'..." << endl;
|
LYXERR(Debug::INIT) << "Reading session information '.lyx/session'..." << endl;
|
||||||
pimpl_->session_.reset(new Session(lyxrc.num_lastfiles));
|
pimpl_->session_.reset(new Session(lyxrc.num_lastfiles));
|
||||||
|
@ -324,13 +324,11 @@ void LyXFunc::processKeySym(LyXKeySymPtr keysym, key_modifier::state state)
|
|||||||
func = FuncRequest(LFUN_COMMAND_PREFIX);
|
func = FuncRequest(LFUN_COMMAND_PREFIX);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lyxerr.debugging(Debug::KEY)) {
|
LYXERR(Debug::KEY) << BOOST_CURRENT_FUNCTION
|
||||||
lyxerr << BOOST_CURRENT_FUNCTION
|
|
||||||
<< " Key [action="
|
<< " Key [action="
|
||||||
<< func.action << "]["
|
<< func.action << "]["
|
||||||
<< to_utf8(keyseq->print(false)) << ']'
|
<< to_utf8(keyseq->print(false)) << ']'
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
|
||||||
|
|
||||||
// already here we know if it any point in going further
|
// already here we know if it any point in going further
|
||||||
// why not return already here if action == -1 and
|
// why not return already here if action == -1 and
|
||||||
|
@ -191,9 +191,7 @@ void RowPainter::paintInset(pos_type const pos, LyXFont const & font)
|
|||||||
bool tmp = refreshInside;
|
bool tmp = refreshInside;
|
||||||
if (!in || !in->wide()) {
|
if (!in || !in->wide()) {
|
||||||
refreshInside = true;
|
refreshInside = true;
|
||||||
if (lyxerr.debugging(Debug::PAINTING)) {
|
LYXERR(Debug::PAINTING) << endl << "Paint inset fully" << endl;
|
||||||
lyxerr << endl << "Paint inset fully" << endl;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (refreshInside)
|
if (refreshInside)
|
||||||
inset->drawSelection(pi, int(x_), yo_);
|
inset->drawSelection(pi, int(x_), yo_);
|
||||||
@ -977,10 +975,8 @@ void paintPar
|
|||||||
// Re-enable screen drawing for future use of the painter.
|
// Re-enable screen drawing for future use of the painter.
|
||||||
pi.pain.setDrawingEnabled(true);
|
pi.pain.setDrawingEnabled(true);
|
||||||
|
|
||||||
if (lyxerr.debugging(Debug::PAINTING)) {
|
|
||||||
LYXERR(Debug::PAINTING) << "." << endl;
|
LYXERR(Debug::PAINTING) << "." << endl;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace anon
|
} // namespace anon
|
||||||
|
|
||||||
|
@ -1366,12 +1366,10 @@ void LyXText::drawSelection(PainterInfo & pi, int x, int) const
|
|||||||
if (!ptr_cmp(cur.text(), this))
|
if (!ptr_cmp(cur.text(), this))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (lyxerr.debugging(Debug::DEBUG)) {
|
|
||||||
LYXERR(Debug::DEBUG)
|
LYXERR(Debug::DEBUG)
|
||||||
<< BOOST_CURRENT_FUNCTION
|
<< BOOST_CURRENT_FUNCTION
|
||||||
<< "draw selection at " << x
|
<< "draw selection at " << x
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
|
||||||
|
|
||||||
DocIterator beg = cur.selectionBegin();
|
DocIterator beg = cur.selectionBegin();
|
||||||
DocIterator end = cur.selectionEnd();
|
DocIterator end = cur.selectionEnd();
|
||||||
|
Loading…
Reference in New Issue
Block a user