comparison libgui/src/octave-qobject.cc @ 31827:c8dd3da44e83

maint: Remove `#if 0` commented-out code from the codebase. The codebase had 1850+ lines of code that were commented out using the `#if 0` preprocessor directive. Running `hg annotate` indicated that most of them had been commented out several years ago and had not been edited in years, except maybe whitespace formatting, leading to a large amount of commented-out code that was not up-to-date with the rest of the codebase. This edit removes almost all instances of `#if 0` from .h and .cpp files, the only exception being a corner case where /* */ comments cannot be used as they will interfere with BIST formatting. If this removal proves to be too disruptive, please revert as required.
author Arun Giridhar <arungiridhar@gmail.com>
date Tue, 14 Feb 2023 22:04:06 -0500
parents 90621682cc03
children 17a09d2bbe0f
comparison
equal deleted inserted replaced
31826:fb8767c533d3 31827:c8dd3da44e83
685 } 685 }
686 686
687 QPointer<file_editor_interface> 687 QPointer<file_editor_interface>
688 base_qobject::editor_widget (main_window */*mw*/) 688 base_qobject::editor_widget (main_window */*mw*/)
689 { 689 {
690 #if 0
691 if (m_editor_widget && mw)
692 {
693 m_editor_widget->set_main_window (mw);
694 m_editor_widget->set_adopted (true);
695 }
696 else if (! m_editor_widget)
697 m_editor_widget = new file_editor (mw);
698 #endif
699
700 return m_editor_widget; 690 return m_editor_widget;
701 } 691 }
702 692
703 QPointer<variable_editor> 693 QPointer<variable_editor>
704 base_qobject::variable_editor_widget (main_window *mw) 694 base_qobject::variable_editor_widget (main_window *mw)