Skip to content

Commit 9559e97

Browse files
remove comments regarding G-1050 in G-1040
1 parent 0d3a3ca commit 9559e97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/4-language-usage/1-general/g-1040.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Any part of your code, which is no longer used or cannot be reached, should be e
1313
declare
1414
co_dept_purchasing constant departments.department_id%type := 30;
1515
begin
16-
if 2 = 3 then -- G-1050 violated, dead code detection works with literals only
16+
if 2 = 3 then -- dead code detection works with literals only
1717
null; -- some dead code here
1818
end if;
1919

@@ -28,7 +28,7 @@ begin
2828
null; -- some other enabled code here
2929

3030
case
31-
when 1 = 1 and 'x' = 'y' then -- G-1050 violated, dead code detection works with literals only
31+
when 1 = 1 and 'x' = 'y' then -- dead code detection works with literals only
3232
null; -- some dead code here
3333
else
3434
null; -- some further enabled code here
@@ -40,7 +40,7 @@ begin
4040
from employees
4141
where department_id = co_dept_purchasing
4242
or commission_pct is not null
43-
and 5 = 6 -- G-1050 violated, dead code detection works with literals only
43+
and 5 = 6 -- dead code detection works with literals only
4444
)
4545
-- "or commission_pct is not null" is dead code
4646
loop

0 commit comments

Comments
 (0)