forked from osmocom/wireshark
NSIS: remove unused DisableSection and EnableSection macros
These macros were added in commit6e9e773a85
for GTK1-related stuff and removed in commit12ac5d6859
and serve no other purpose. Note that documentation for section flags can be found in https://nsis.sourceforge.io/Docs/Chapter4.html#sectionsetflags Change-Id: I6a24de8836e40e94c9a55706bdce6a64e1adb553 Reviewed-on: https://code.wireshark.org/review/37309 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
f1ef488120
commit
677fc33d5c
|
@ -131,31 +131,6 @@ Page custom DisplayUSBPcapPage
|
|||
; ============================================================================
|
||||
!include "Sections.nsh"
|
||||
|
||||
; ========= Macro to unselect and disable a section =========
|
||||
|
||||
!macro DisableSection SECTION
|
||||
|
||||
Push $0
|
||||
SectionGetFlags "${SECTION}" $0
|
||||
IntOp $0 $0 & ${SECTION_OFF}
|
||||
IntOp $0 $0 | ${SF_RO}
|
||||
SectionSetFlags "${SECTION}" $0
|
||||
Pop $0
|
||||
|
||||
!macroend
|
||||
|
||||
; ========= Macro to enable (unreadonly) a section =========
|
||||
!define SECTION_ENABLE 0xFFFFFFEF
|
||||
!macro EnableSection SECTION
|
||||
|
||||
Push $0
|
||||
SectionGetFlags "${SECTION}" $0
|
||||
IntOp $0 $0 & ${SECTION_ENABLE}
|
||||
SectionSetFlags "${SECTION}" $0
|
||||
Pop $0
|
||||
|
||||
!macroend
|
||||
|
||||
; ============================================================================
|
||||
; Command Line
|
||||
; ============================================================================
|
||||
|
|
Loading…
Reference in New Issue