mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Remove AssertArg and AssertState
These don't offer anything over plain Assert, and their usage had already been declared obsolescent. Author: Nathan Bossart <nathandbossart@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://www.postgresql.org/message-id/20221009210148.GA900071@nathanxps13
This commit is contained in:
@@ -179,7 +179,7 @@ AbsoluteConfigLocation(const char *location, const char *calling_file)
|
||||
}
|
||||
else
|
||||
{
|
||||
AssertState(DataDir);
|
||||
Assert(DataDir);
|
||||
join_path_components(abs_path, DataDir, location);
|
||||
canonicalize_path(abs_path);
|
||||
}
|
||||
|
||||
@@ -6081,9 +6081,9 @@ ParseLongOption(const char *string, char **name, char **value)
|
||||
size_t equal_pos;
|
||||
char *cp;
|
||||
|
||||
AssertArg(string);
|
||||
AssertArg(name);
|
||||
AssertArg(value);
|
||||
Assert(string);
|
||||
Assert(name);
|
||||
Assert(value);
|
||||
|
||||
equal_pos = strcspn(string, "=");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user