In my theme I use
locate_template() to load the various parts of my functions library. I'm looking for a way to not include one of those files when using a child theme. I tried adding
locate_template('same_file_name.php', false); to my child theme's functions.php but it is still included.
CLARIFICATION EDIT: I don't want to prevent this file from being used by child themes. In general I want this file to be included when I am using a child theme. I am looking for something to add to a child theme when I don't want to use it.