Skip to content

Question: Is hasPage function in cdp.zig unused and can be removed? #1297

@Yamashou

Description

@Yamashou

Summary

I noticed that the hasPage function in src/cdp/cdp.zig:119 appears to be unused.

Details

pub fn hasPage() bool {}
  • The function has an empty body with no return value
  • I searched the codebase and found no call sites for this function
  • The adjacent pageWait function is implemented and actively used

Question

  • Is this function intended for future use?
  • If not, would a PR to remove it be welcome?

Environment

Suggestion

Consider adding refAllDecls test to catch such issues:

test "all declarations compile" {
    std.testing.refAllDecls(@This());
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions