[nemiver/follow-fork-mode] Avoid printing unnecessary error messages
- From: Dodji Seketeli <dodji src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nemiver/follow-fork-mode] Avoid printing unnecessary error messages
- Date: Sat, 17 Jul 2010 17:59:07 +0000 (UTC)
commit 6738aa1c55d60b6b8f4189dfd22423efd4c0ac9c
Author: Dodji Seketeli <dodji redhat com>
Date: Sat Jul 17 17:04:43 2010 +0200
Avoid printing unnecessary error messages
* src/uicommon/nmv-source-editor.cc
(SourceEditor::assembly_buf_addr_to_line): Do not necessarily spit error
messages when returning false here.
(SourceEditor::assembly_buf_addr_to_line_previous): Likewise.
(SourceEditor::assembly_buf_line_to_addr): Likewise.
src/uicommon/nmv-source-editor.cc | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/uicommon/nmv-source-editor.cc b/src/uicommon/nmv-source-editor.cc
index e6c536e..55bc29a 100644
--- a/src/uicommon/nmv-source-editor.cc
+++ b/src/uicommon/nmv-source-editor.cc
@@ -1131,7 +1131,6 @@ bool
SourceEditor::assembly_buf_addr_to_line (const Address &a_addr, int &a_line) const
{
Glib::RefPtr<SourceBuffer> buf = get_assembly_source_buffer ();
- RETURN_VAL_IF_FAIL (buf, false);
return m_priv->address_2_line (buf, a_addr, a_line);
}
@@ -1149,7 +1148,6 @@ SourceEditor::assembly_buf_addr_to_line_previous (const Address &a_addr,
Address &a_prev_address) const
{
Glib::RefPtr<SourceBuffer> buf = get_assembly_source_buffer ();
- RETURN_VAL_IF_FAIL (buf, false);
int line = 0;
bool ok = m_priv->address_2_line (buf, a_addr,
line,
@@ -1165,7 +1163,6 @@ bool
SourceEditor::assembly_buf_line_to_addr (int a_line, Address &a_address) const
{
Glib::RefPtr<SourceBuffer> buf = get_assembly_source_buffer ();
- RETURN_VAL_IF_FAIL (buf, false);
return m_priv->line_2_address (buf, a_line, a_address);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]